const mongoose = require('mongoose');
const { baseModel } = require('./baseModel')

// 定义模型
const classSchema = new mongoose.Schema({
    className:{
        type:String,
        required:true,
        unique:true
    },
    classNumber:{
        type:Number,
        default:0
    },
    count:{
        type:Number,
        default:0
    },
    ...baseModel
})

module.exports = classSchema